package org.locker.domain.bo;

import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.locker.domain.OrderStatistics;

/**
 * 订单统计业务对象 lk_order_statistics
 *
 * @author winnie
 * @date 2024-04-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OrderStatistics.class, reverseConvertGenerate = false)
public class OrderStatisticsBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 场地ID
     */
    @NotNull(message = "场地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long positionId;
    /**
     * 设备编号
     */
    @NotNull(message = "设备编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceNo;

    /**
     * 场地名称
     */
    @NotBlank(message = "场地名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 日期
     */
    @NotNull(message = "日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date dateTag;

    /**
     * 订单数量
     */
    @NotNull(message = "订单数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long count;

    /**
     * 订单收益
     */
    @NotNull(message = "订单收益不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal income;

    /**
     * 当日统计单价
     */
    @NotNull(message = "当日统计单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal statisticsPrice;


}
